<!-- infoList.html 2017-11-07 19:40:46-->
#@HplusLayout()
#define content()
<div style="padding:0 10px;height: 100%">
	<div id="AdvanceSearch" style="padding:15px;display: none">
		<form class="form-horizontal" novalidate="novalidate" onsubmit="return bootstrapTableRefresh()">
			<div class="form-group">
				<label class="col-xs-3 control-label">名称：</label>
				<div class="col-xs-8">
	<input type="text" class="form-control" name="name"/>
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-3 control-label">路径：</label>
				<div class="col-xs-8">
	<input type="text" class="form-control" name="path"/>
				</div>
			</div>
	    			<div class="form-group">
				<div class="col-xs-8 col-xs-offset-3">
					<button type="reset" class="btn btn-default">清空</button> 
					<button type="submit" class="btn btn-primary">开始查询</button> 
				</div>
			</div>
		</form>
	</div>
	<div id="toolbar">
		<button onclick="layer.open({area: ['450px', 'auto'],content:$('#AdvanceSearch'),type:1,shade: false,title:'搜索'});" type="button" class="btn btn-outline btn-default"><i class="glyphicon glyphicon-search"></i></button>
	</div>
	<table id="bootstrapTable" data-id-field="id" data-url="infoList" data-sort-name="id" data-sort-order="desc">
		<thead>
			<tr>
				<th data-checkbox="true"></th>
				<th data-formatter="xuhaoFormatter" data-align="center" data-width="70px">序号</th>
				<th data-field="name" data-align="center">名称</th>
				<th data-field="server" data-align="center">服务器</th>
				<th data-field="path" data-align="center">路径</th>
				<th data-field="ext" data-align="center">扩展名</th>
				<th data-field="size" data-align="center">体积</th>
				<th data-field="type" data-align="center">类型</th>
				<th data-field="create_time" data-align="center" data-width="150px">创建时间</th>
				<th data-formatter="caozuoFormatter">操作</th>
			</tr>
		</thead>
	</table>
</div>
#end
#define css()
<link href="#(res_path)/hplus/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
#end
#define js()
<script src="#(res_path)/hplus/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="#(res_path)/hplus/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
#end
#define jsFunction()
<script>
	function caozuoFormatter(value,row,index){
		var str = "";
			str = str + "<a href=\"javascript:\" onclick=\"ajaxTodoByConfirm('deleteInfo?id="+row.id+"','确定删除吗？',listAjaxDone)\">删除</a>  ";
		
		return str;
	}
</script>
#end